// 对外暴露所有必须得路由

export const constantRouterMap = [
  // 登录页面
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
    meta:{
      title: "登录",
      hidden: true,
    }
  },
  // 首页
  {
    path: "/",
    component: () => import("@/layout/index.vue"),
    meta:{
      title: "首页1",
      icon: "House",
      hidden: false,
    },
    children: [
      {
        path: "",
        name: "home",
        component: () => import("@/views/home/index.vue"),
        meta:{
          title: "首页",
          icon: "House",
          hidden: false,
        }
      },
    ],
  },
  {
    path: "/404",
    component: () => import("@/views/404/index.vue"),
    name: "404",
    meta:{
      title: "404",
      hidden: true,
    }
  },
  {
    path: "/:pathMath(.*)",
    redirect: "/404",
    name: "any",
    meta:{
      title: "any",
      hidden: true,
    }
  },
];
